﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Windows.Admin.Domain;

namespace Admin.Infrastructure.EFCore.Mappings
{
    public class ChatMessageMapping : IEntityTypeConfiguration<ChatMessage>
    {
        public void Configure(EntityTypeBuilder<ChatMessage> builder)
        {
            builder.Property(x => x.SenderId);
            builder.Property(x => x.ReceiverId);
            builder.Property(x => x.IsRead);
            builder.Property(x => x.MessageType);
            builder.Property(x => x.Message);
            builder.Property(x => x.IsVisible);
            builder.Property(x => x.IsWithdraw);
            builder.Property(x => x.ChatedOn);
        }
    }
}
